#include "game.h"
void menu()
{
printf ("****************************");
printf ("*******     1. play   ******");
printf ("*******     0.exit    ******");
printf ("****************************");
}
void game()
{ 
    char board[ROW][COL];
IB(board,ROW,COL);
DB(board,ROW,COL);
while(1)
{
    PM(board,ROW,COL);
    DB(board,ROW,COL);
    CM(board,ROW,COL);
    DB(board,ROW,COL);
}
}
int main()
{
    int input =  0 ;
    srand ((unsigned int)time(NULL));
do
{ 
     menu();
     printf("请输入");
    scanf("%d",&input);
    switch (input)
    {
    case 1:
         printf("玩游戏:");
      game();
    break;
    case 0:
        printf("请退出");
    break;
    default:
        printf("请重新输入：");
        break;
    }
    }while (input);
}